package com.wosai.register.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class LoginController {
    private static final Log logger = LogFactory.getLog(LoginController.class);

    
    @RequestMapping(value="/login", method=RequestMethod.GET)
    public String login(Model model)
    {
        return "login";
    }
    
    @RequestMapping(value="/loginfailed", method=RequestMethod.GET)
    public String failed(Model model)
    {
        model.addAttribute("error", "true");
        return "login";
    }
    
    
}
